﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using crm_dal.Objects;
using crm_library.Javascript;


namespace crm_web.DataPages
{
	public partial class ViewClient : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			try
			{

				Client displayClient = new Client(Convert.ToInt32(HttpContext.Current.Session["Selection"]));
				lblFname.Text = displayClient.FirstName;
				lblMiddleInit.Text = displayClient.MiddleInit;
				lblLname.Text = displayClient.LastName;
				lblCompany.Text = displayClient.Company;
			}
			catch (Exception ex)
			{
				Alert.Show(ex.Message, Alert.AlertMessageType.Error);
			}
		}

	}
}